package cn.sxt.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;

import cn.sxt.util.PageInfoUtil;
import cn.sxt.yxl.service.IUsersService;

@Controller
public class BaseController {
	@Resource
	private IUsersService usersService;
	
	protected PageInfoUtil proccedPageInfo(HttpServletRequest req){
		PageInfoUtil pageInfoUtil = new PageInfoUtil();
		String page = req.getParameter("page");
		try {
			pageInfoUtil.setCurrentPage(Integer.valueOf(page));
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return pageInfoUtil;
	}
}
